<%@ page language="java" pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="ww" uri="webwork" %>
<ww:bean name="'com.css.apps.base.dict.service.DictMan'" id="dictID" />
<form class="form-horizontal table-form"  name="userpost_form" id="userpost_form" action="dirPostUser.action" 
	onsubmit="return navTabSearch(this)">
	
	<input type="hidden" name="page.orderFlag" id="page.orderFlag" value="<ww:property value='page.orderFlag'/>" class="order-flag"> 
	<input type="hidden" name="page.orderString" id="page.orderString" value="<ww:property value='page.orderString'/>" class="order-string">
	<input type="hidden" name="page.pageSize" class="page-size" value="<ww:property value='page.pageSize'/>">
	<input type="hidden" name="page.totalPages" class="page-count" value="<ww:property value='page.totalPages'/>">
	<input type="hidden" name="page.currentPage" class="page-current" value="<ww:property value='page.currentPage'/>">

	<input type="hidden" name="postId" id="postId" value="<ww:property value='postId'/>">
	
	<div class="table-header">
		<div class="table-btn">
			<div class="btn-group">
			  <ww:link funcode="acl_post/addPostRole" target="cssDialog" title="人员设置" css="btn" caption="人员设置" href="getPostUser.action?postId=%{postId}"></ww:link>	
			</div>
			<div class="btn-group">
			  <ww:link funcode="acl_post/delPostRole" title="删除人员设置" css="btn" caption="批量删除" onclick="$action.execBatch(this,{url:'delPostRole.action?postId=%{postId}'});" href="javascript:;" ></ww:link>	
			</div>
		</div>
	</div>
	
	<table class="table table-bordered">
		<thead>
			<tr>
			    <th width="25px"><input group="ids" type="checkbox" class="cleck-all" /></th>
			    <th>操作</th>
				<th>所属机构</th>
				<th>人员名称</th>
				<th>状态</th>
			</tr>
		</thead>
		<tbody>
		    <ww:iterator value="page.results" status="s"> 
	    	<ww:set name="user" value="page.results[#s.index]"/>
			<tr>
				<td class="text-center"><input type="checkbox" name="ids" value="<ww:property value="#user[0]"/>"/></td>
				<td class="text-center">
			    	<ww:link caption="删除" 
			    		onclick="$action.exec(this,{url:'delPostUser.action?ids=%{#user[0]}'});" href="javascript:;">
			    	</ww:link>
				</td>
				<td class="text-center"><ww:property value="#user[3]"/></td>
				<td class="text-center"><ww:property value="#user[2]"/></td>
				<td class="text-center"><ww:property value="#dictID.getDictType('d_active_status', #user[4]).name"/></td>
			</tr>
			</ww:iterator>
		</tbody>
	</table>
	<div class="pagination"><ww:property value="page.pageSplit"/></div>
</form>